package controller;

import java.rmi.RemoteException;

import model.PlayerGameStatsInterface;
import model.PlayerInterface;
import toolkit.Debug;

public class Statistics extends Controller
{
	private int gameId;
	
	public Statistics(int gameId)
	{
		this.gameId = gameId;
		
		view = new view.Statistics(this, gameId);
		setView(view);
	}
	
	public PlayerGameStatsInterface getPlayerGameStatistics()
	{
		try
		{
			return serverRemote.getPlayerStatistics(gameId, (PlayerInterface) user);
		}
		catch (RemoteException e)
		{
			Debug.log(e);
		}
		
		return null;
	}
}
